	<div class="popup_guibai2 popup_detail popup_xembaitruoc" style="display: none;">
            <div class="main_popup xemtruoc">

                <div class="detail_popup">
					<div class="left_popup">
						<div class="content_popup">
							<div class="title"><?=$contesttmp[0]->title?></div>
							<div class="username"><?=$contesttmp[0]->username?> <span class="date">(<?=getVNDateTime($contesttmp[0]->created )?>)</span></div>
							<div style="height: 20px;"></div>
							<div class="content js_content">
								<?=$contesttmp[0]->content?>
							</div>
							<div class="date_binhchon mt13">
								<div class="btn_dangbai"><a href="JavaScript:void(0);" onclick="return post_contest_baiviet();" class="btn_hoantat"></a><a href="JavaScript:void(0);" class="btn_sualaibai" onclick="return open_popup_contest_dangbaiviet(<?=$contesttmp[0]->id?>);"></a><a href="JavaScript:void(0);" class="btn_huy" onclick="return close_popup();"></a><div class="clearAll"></div></div>
							</div>
							<div style="height: 10px;"></div>
						</div>
					</div>
					<div class="clearAll"></div>
				</div>
            </div> 
        </div>
        <script type="text/javascript">
         $('.js_content').jScrollPane();
          function post_contest_baiviet()
            {
                id = <?=$contesttmp[0]->id?>;
                var url ="<?= PATH_URL ?>contest/ajax_post_baiviet";
                $.post(url,{
                    id:id
                },function(data){
                    if(data==1)
                    {
                        open_Popup_thanhcong('contest');
                        $(".popup_xembaitruoc").overlay().close();
                    }
                    if(data == 0)
                    {
                        
                    }
                });
            }
         function close_popup()
         {
            <?php  $this->session->unset_userdata('id_tmp');?>
            $(".popup_xembaitruoc").overlay().close();
            close_Popup_Post_Contest();
         }
        </script>